package algorithm;
/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Lenovo
 * Date: 2022-02-17
 * Time: 19:29
 */
public class SequenceListTest {
    public static void main(String[] args) {
        SequenceList<String> s1=new SequenceList<>(capacity:10);
        s1.insert(t:"姚明");
        s1.insert(t:"科比");
        s1.insert(t:"麦迪");
        s1.insert(i:1,t:"詹姆斯");
        String getResult=s1.get(1);
        System.out.println("获取索引1处的结果为："+getResult);
        String removeResult=s1.remove(i:0);
        System.out.println("删除的元素是："+removeResult);
        s1.clear();
        System.out.println("清空后的线性表中的元素个数为："+s1.length());


    }
}
